package edu.tsinghua.mrpvc.device.light;

import java.util.Dictionary;
import java.util.Hashtable;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.service.event.EventConstants;
import org.osgi.service.event.EventHandler;

import edu.tsinghua.mrpvc.device.LightDevice;


public class Activator implements BundleActivator {

//	LightDeviceImpl light = null;
//	private final static String[] RESPONSE_TOPICS = {LightDevice.EVENT_TOPIC_ISVALID, LightDevice.EVENT_TOPIC_LEVEL, LightDevice.EVENT_TOPIC_POWER};
	/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
	 */
	public void start(BundleContext context) throws Exception {
//		light = new LightDeviceImpl(context, "1");
//		context.registerService(LightDevice.class.getName(), light, null);
//		
//		Dictionary<String, Object> property = new Hashtable<String, Object>();
//		property.put(EventConstants.EVENT_TOPIC, RESPONSE_TOPICS);
//		context.registerService(EventHandler.class.getName(), light, property);
	}

	/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
	 */
	public void stop(BundleContext context) throws Exception {
	}
}
